package swing;
import java.awt.BorderLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFormattedTextField;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.LayoutStyle;

import javax.swing.WindowConstants;
import javax.swing.border.BevelBorder;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class JFrameMenu extends javax.swing.JFrame {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JPanel panMenuPrincipal;
	private JButton btnAprobados;
	private JButton btnSalir;
	private JLabel lblLogo;
	private JFormattedTextField jFormattedTextField2;
	private JFormattedTextField jFormattedTextField1;
	private JFormattedTextField jFormattedTextFieldSeccion;
	private JButton btnReprobados;
	private JButton btnNotaFinal;
	private JButton btnCedula;
	private JButton btnAccionSecc;
	private JButton btnEstudiante;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				JFrameMenu inst = new JFrameMenu();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public JFrameMenu() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Opciones");
			{
				panMenuPrincipal = new JPanel();
				getContentPane().add(panMenuPrincipal, BorderLayout.CENTER);
				GroupLayout panMenuPrincipalLayout = new GroupLayout((JComponent)panMenuPrincipal);
				panMenuPrincipal.setLayout(panMenuPrincipalLayout);
				panMenuPrincipal.setBackground(new java.awt.Color(255,255,255));
				panMenuPrincipal.setPreferredSize(new java.awt.Dimension(341, 444));
				panMenuPrincipal.setBorder(BorderFactory.createCompoundBorder(
						null, 
						null));
				{
					jFormattedTextFieldSeccion = new JFormattedTextField();
					jFormattedTextFieldSeccion.setText("Listados");
					jFormattedTextFieldSeccion.setEditable(false);
					jFormattedTextFieldSeccion.setBackground(new java.awt.Color(24,87,227));
					jFormattedTextFieldSeccion.setForeground(new java.awt.Color(255,255,255));
					jFormattedTextFieldSeccion.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
				}
				{
					btnSalir = new JButton();
					btnSalir.setIcon(new ImageIcon(getClass().getResource("salir.jpeg")));
					btnSalir.setBackground(new java.awt.Color(255,255,255));
					btnSalir.addMouseListener(new MouseAdapter() {
						public void mouseClicked(MouseEvent evt) {
							System.out.println("jbtnsalir.mouseClicked, event="+evt);
							//TODO add your code for jbtnaccion.mouseClicked
							System.exit(99);
						}
					});
			}
				{
					jFormattedTextField1 = new JFormattedTextField();
					jFormattedTextField1.setText("Acciones ");
					jFormattedTextField1.setEditable(false);
					jFormattedTextField1.setBackground(new java.awt.Color(24,87,227));
					jFormattedTextField1.setForeground(new java.awt.Color(255,255,255));
					jFormattedTextField1.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
				}
				{
					jFormattedTextField2 = new JFormattedTextField();
					jFormattedTextField2.setText("Departamento de Evaluaciones");
					jFormattedTextField2.setEditable(false);
					jFormattedTextField2.setBackground(new java.awt.Color(24,87,227));
					jFormattedTextField2.setForeground(new java.awt.Color(255,255,255));
					jFormattedTextField2.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
				}
				{
					lblLogo = new JLabel();
					lblLogo.setIcon(new ImageIcon(getClass().getResource("escudo.jpeg")));
				}
				{
					btnEstudiante = new JButton();
					btnEstudiante.setText("<Gestionar Estudiante>");
					btnEstudiante.setBackground(new java.awt.Color(255,255,255));
					btnEstudiante.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					btnEstudiante.setFont(new java.awt.Font("Dialog",0,12));
					btnEstudiante.addMouseListener(new MouseAdapter() {
						public void mouseClicked(MouseEvent evt) {
							System.out.println("btnEstudiante.mouseClicked, event="+evt);
							//TODO add your code for btnEstudiante.mouseClicked
							JFrameEstudiante jfest = new JFrameEstudiante();
		    				 jfest.setLocationRelativeTo(null);
		    				 jfest.setVisible(true);
		    				 setVisible(false);
						}
					});
				}
				{
					btnAccionSecc = new JButton();
					btnAccionSecc.setText("<Gestionar Sección>");
					btnAccionSecc.setBackground(new java.awt.Color(255,255,255));
					btnAccionSecc.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					btnAccionSecc.setFont(new java.awt.Font("Dialog",0,12));
					btnAccionSecc.addMouseListener(new MouseAdapter() {
						public void mouseClicked(MouseEvent evt) {
							System.out.println("btnAccionSecc.mouseClicked, event="+evt);
							//TODO add your code for btnAccionSecc.mouseClicked
							JFrameAccionSeccion jfest = new JFrameAccionSeccion();
		    				 jfest.setLocationRelativeTo(null);
		    				 jfest.setVisible(true);
		    				 setVisible(false);
						}
					});
				}
				{
					btnCedula = new JButton();
					btnCedula.setText("\"Listado Por Cedula\"");
					btnCedula.setBackground(new java.awt.Color(255,255,255));
					btnCedula.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					btnCedula.setFont(new java.awt.Font("Dialog",0,12));
					btnCedula.addMouseListener(new MouseAdapter() {
						public void mouseClicked(MouseEvent evt) {
							System.out.println("btnCedula.mouseClicked, event="+evt);
							//TODO add your code for btnCedula.mouseClicked
							JFramReporteOrdenadosCedula jfest = new JFramReporteOrdenadosCedula();
		    				 jfest.setLocationRelativeTo(null);
		    				 jfest.setVisible(true);
		    				 setVisible(false);
						}
					});
				}
				{
					btnNotaFinal = new JButton();
					btnNotaFinal.setText("\"Listado Nota Final\"");
					btnNotaFinal.setBackground(new java.awt.Color(255,255,255));
					btnNotaFinal.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					btnNotaFinal.setFont(new java.awt.Font("Dialog",0,12));
					btnNotaFinal.addMouseListener(new MouseAdapter() {
						public void mouseClicked(MouseEvent evt) {
							System.out.println("btnNotaFinal.mouseClicked, event="+evt);
							//TODO add your code for btnNotaFinal.mouseClicked
							JFrameReporteOrdenadosNotaFinal jfest = new JFrameReporteOrdenadosNotaFinal();
		    				 jfest.setLocationRelativeTo(null);
		    				 jfest.setVisible(true);
		    				 setVisible(false);
						}
					});
				}
				{
					btnAprobados = new JButton();
					btnAprobados.setText("\"Listado Alumnos Aprobados\"");
					btnAprobados.setBackground(new java.awt.Color(255,255,255));
					btnAprobados.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					btnAprobados.setFont(new java.awt.Font("Dialog",0,12));
					btnAprobados.addMouseListener(new MouseAdapter() {
						public void mouseClicked(MouseEvent evt) {
							System.out.println("btnAprobados.mouseClicked, event="+evt);
							//TODO add your code for btnAprobados.mouseClicked
							JFrameReporteAprobados jfest = new JFrameReporteAprobados();
		    				 jfest.setLocationRelativeTo(null);
		    				 jfest.setVisible(true);
		    				 setVisible(false);
						}
					});
				}
				{
					btnReprobados = new JButton();
					btnReprobados.setText("\"Listado Alumnos Reprobados\"");
					btnReprobados.setBackground(new java.awt.Color(255,255,255));
					btnReprobados.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
					btnReprobados.setFont(new java.awt.Font("Dialog",0,12));
					btnReprobados.addMouseListener(new MouseAdapter() {
						public void mouseClicked(MouseEvent evt) {
							System.out.println("btnReprobados.mouseClicked, event="+evt);
							//TODO add your code for btnReprobados.mouseClicked
							JFrameReporteAplazados jfest = new JFrameReporteAplazados();
		    				 jfest.setLocationRelativeTo(null);
		    				 jfest.setVisible(true);
		    				 setVisible(false);
						}
					});
				}
				panMenuPrincipalLayout.setHorizontalGroup(panMenuPrincipalLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(panMenuPrincipalLayout.createParallelGroup()
					    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					        .addComponent(jFormattedTextFieldSeccion, GroupLayout.PREFERRED_SIZE, 305, GroupLayout.PREFERRED_SIZE))
					    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					        .addComponent(jFormattedTextField1, GroupLayout.PREFERRED_SIZE, 305, GroupLayout.PREFERRED_SIZE))
					    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					        .addGap(16)
					        .addGroup(panMenuPrincipalLayout.createParallelGroup()
					            .addGroup(GroupLayout.Alignment.LEADING, panMenuPrincipalLayout.createSequentialGroup()
					                .addComponent(lblLogo, GroupLayout.PREFERRED_SIZE, 50, GroupLayout.PREFERRED_SIZE)
					                .addGroup(panMenuPrincipalLayout.createParallelGroup()
					                    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					                        .addComponent(jFormattedTextField2, GroupLayout.PREFERRED_SIZE, 239, GroupLayout.PREFERRED_SIZE))
					                    .addGroup(GroupLayout.Alignment.LEADING, panMenuPrincipalLayout.createSequentialGroup()
					                        .addGap(196)
					                        .addComponent(btnSalir, GroupLayout.PREFERRED_SIZE, 43, GroupLayout.PREFERRED_SIZE))))
					            .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					                .addPreferredGap(lblLogo, btnEstudiante, LayoutStyle.ComponentPlacement.INDENT)
					                .addGroup(panMenuPrincipalLayout.createParallelGroup()
					                    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					                        .addComponent(btnEstudiante, GroupLayout.PREFERRED_SIZE, 277, GroupLayout.PREFERRED_SIZE))
					                    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					                        .addComponent(btnAccionSecc, GroupLayout.PREFERRED_SIZE, 277, GroupLayout.PREFERRED_SIZE))
					                    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					                        .addComponent(btnAprobados, GroupLayout.PREFERRED_SIZE, 277, GroupLayout.PREFERRED_SIZE))
					                    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					                        .addComponent(btnNotaFinal, GroupLayout.PREFERRED_SIZE, 277, GroupLayout.PREFERRED_SIZE))
					                    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					                        .addComponent(btnCedula, GroupLayout.PREFERRED_SIZE, 277, GroupLayout.PREFERRED_SIZE))
					                    .addGroup(panMenuPrincipalLayout.createSequentialGroup()
					                        .addComponent(btnReprobados, GroupLayout.PREFERRED_SIZE, 277, GroupLayout.PREFERRED_SIZE)))))))
					.addContainerGap(30, Short.MAX_VALUE));
				panMenuPrincipalLayout.setVerticalGroup(panMenuPrincipalLayout.createSequentialGroup()
					.addGroup(panMenuPrincipalLayout.createParallelGroup()
					    .addComponent(lblLogo, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 85, GroupLayout.PREFERRED_SIZE)
					    .addGroup(GroupLayout.Alignment.LEADING, panMenuPrincipalLayout.createSequentialGroup()
					        .addGap(33)
					        .addComponent(jFormattedTextField2, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					        .addGap(33)))
					.addGap(26)
					.addComponent(jFormattedTextField1, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					.addGap(0, 24, Short.MAX_VALUE)
					.addComponent(btnEstudiante, GroupLayout.PREFERRED_SIZE, 18, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addComponent(btnAccionSecc, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addComponent(jFormattedTextFieldSeccion, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addComponent(btnCedula, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addComponent(btnNotaFinal, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addComponent(btnAprobados, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addComponent(btnReprobados, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					.addGap(0, 27, GroupLayout.PREFERRED_SIZE)
					.addComponent(btnSalir, GroupLayout.PREFERRED_SIZE, 43, GroupLayout.PREFERRED_SIZE)
					.addContainerGap());
			}
			pack();
			this.setSize(349, 473);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}